58e33f4d9192e9edbb4ede4939636e18a63b1a15,platform/vcs-impl/src/com/intellij/openapi/diff/impl/dir/DirDiffTableCellRenderer.java,DirDiffTableCellRenderer,getOrCreate,#String#,113
Before Change
final int w = myTable.getWidth();
final int h = myTable.getRowHeight();
final BufferedImage img = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
final Icon icon = Icons.FOLDER_ICON;
final Graphics g = img.getGraphics();
g.drawImage(IconUtil.toImage(icon), 2, (h - icon.getIconHeight()) / 2, null);
g.setColor(Color.BLACK);
g.drawString(path, 2 + icon.getIconWidth() + 2, h - 2);
cache.put(path, img);
return img;
}
After Change
g.drawImage(IconUtil.toImage(icon), 2, (h - icon.getIconHeight()) / 2, null);
}
g.setColor(Color.BLACK);
g.drawString(path, 2 + (icon == null ? 0 : icon.getIconWidth()) + 2, h - 2);
cache.put(path, img);
return img;
}